package com.job.Gai_Yian.Homework0715;

import javax.sql.rowset.FilteredRowSet;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-15 16:16:12
 */
public class StringEx02 {
    public static void main(String[] args) {
        String str="12iudh238fg91f1bq36fgfu3qyfg1f87genwcfbyf36hwf8KE4F009";
        String part="0";
        int sum=0;
        for (int i=0;i<str.length();i++){
            if (Character.isDigit(str.charAt(i))){
                part+=str.charAt(i);
            }else{
                sum+=Integer.parseInt(part);
                part="0";
            }
        }
        sum+=Integer.parseInt(part);
        System.out.println(sum);
    }
}
